$(function() {
	full();
});

function full(){
	$('.full').click(function(){
		var id = this.id;
		ajax_full(id);
	});	
}

function ajax_full(id){
	var url = '/ajax/full';
	$.ajax({
		url: url,
		type: "POST",
		dataType:"json",
		cache: false,
		async: true,
		data: "id=" + id,
		success:function (result)
		{
			$.fancybox({	
				'width': 400,
				'height': 400,
				'enableEscapeButton' : false,
				'overlayShow' : true,
				'content' : '<img src='+ result.full + ' >',
				'title': result.text
			});
		}
	});
}

